package com.ht.pms.core.dto;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 喻尊龙
 * @since 2018-11-27
 */
@ApiModel
@TableName("t_holiday")
public class Holiday extends Model<Holiday> {

    private static final long serialVersionUID = 1L;

	@ApiModelProperty(required= true,value = "")
	private Integer id;
    /**
     * 节日名称
     */
	@TableField("holiday_name")
	@ApiModelProperty(required= true,value = "节日名称")
	private String holidayName;
    /**
     * 节日年份
     */
	@TableField("date_year")
	@ApiModelProperty(required= true,value = "节日年份")
	private String dateYear;
    /**
     * 节日日期
     */
	@TableField("holiday_date")
	@ApiModelProperty(required= true,value = "节日日期")
	private Date holidayDate;
    /**
     * 是否三倍
     */
	@TableField("is_triple")
	@ApiModelProperty(required= true,value = "是否三倍")
	private Integer isTriple;
    /**
     * 是否假期 1 是 0 否
     */
	@TableField("is_holiday")
	@ApiModelProperty(required= true,value = "是否假期 1 是 0 否")
	private Integer isHoliday;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getHolidayName() {
		return holidayName;
	}

	public void setHolidayName(String holidayName) {
		this.holidayName = holidayName;
	}

	public String getDateYear() {
		return dateYear;
	}

	public void setDateYear(String dateYear) {
		this.dateYear = dateYear;
	}

	public Date getHolidayDate() {
		return holidayDate;
	}

	public void setHolidayDate(Date holidayDate) {
		this.holidayDate = holidayDate;
	}

	public Integer getIsTriple() {
		return isTriple;
	}

	public void setIsTriple(Integer isTriple) {
		this.isTriple = isTriple;
	}

	public Integer getIsHoliday() {
		return isHoliday;
	}

	public void setIsHoliday(Integer isHoliday) {
		this.isHoliday = isHoliday;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Holiday{" +
			", id=" + id +
			", holidayName=" + holidayName +
			", dateYear=" + dateYear +
			", holidayDate=" + holidayDate +
			", isTriple=" + isTriple +
			", isHoliday=" + isHoliday +
			"}";
	}
}
